package operate;

import book.Book;
import book.BookList;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User: Administrator
 * Data: 2023 - 05 - 10
 * Time: 21:00
 */
public class ShowOperate implements IOperation{
    @Override
    public void work(BookList bookList) {
        int currentNums = bookList.getBooknumbers();
        for (int i = 0; i < currentNums; i++) {
            Book book = bookList.getBook(i);
            System.out.println(book);
        }
    }
}
